package com.wsq.workmanager.worker

import android.content.Context
import android.util.Log
import androidx.work.Worker
import androidx.work.WorkerParameters
import com.wsq.utilslib.Constants


/**
 *
 *Date:2022/5/17
 *Time:13:32
 *author:wushengqi
 */
class MyWorker(context: Context, workerParams: WorkerParameters) : Worker(context, workerParams) {
    //运行在子线程中
    override fun doWork(): Result {


        Log.e(Constants.TAG, "dowork() Thread:" + Thread.currentThread().name)

        return Result.success()
    }
}